package net.csdn.business.common.domain.request;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author likun
 * @date 2022/7/27 16:34
 */
@Data
public class ReportAddReqDto implements Serializable {
    /**
     * 这里指的当前登录UID
     */
    @NotBlank(message = "reporterId 不合法", groups = {System.class})
    @Length(min = 24, max = 24, message = "reporterId 不合法", groups = {System.class})
    private String reporterId;

    @NotBlank(message = "rtype 不能为空")
    private String rtype;
    @NotBlank(message = "rid 不能为空")
    private String rid;

    @NotBlank(message = "举报原因不能为空")
    @Size(min = 2, max = 100, message = "举报原因字数超限")
    private String supplement;

    private String title;

    @NotNull(message = "地址不能为空")
    @URL(message = "地址不合法")
    private String contentUrl;

    @NotBlank(message = "reportTypeId 不能为空")
    @Size(min = 24, max = 24, message = "reportTypeId 格式不正确")
    private String reportTypeId;
}